package 设计原则;

/**
 * TODO
 *
 * @author scylla
 * @version V1.0
 * @project echo-java-base
 * @title
 * @package 临时示例包
 * @since 2023/2/24 1:58 下午
 */
public class DIP {

    interface I {
        void doSmt();
    }

    class A {
        void justDo(I i) {
            i.doSmt();
        }
    }

    class B implements I {


        @Override
        public void doSmt() {
            // do B things
        }
    }

    class C implements I {

        @Override
        public void doSmt() {
            // do C things
        }
    }
}
